package com.itheima.exerciseTest.method40_49.method40;

public class Teacher extends Person {
    private String teaid;

    public Teacher() {
        super();
    }

    public Teacher(String teaid) {
        this.teaid = teaid;
    }

    public Teacher(String name, int age, String gender, String teaid) {
        super(name, age, gender);
        this.teaid = teaid;
    }

    @Override
    public void eat() {
        System.out.println("老师正在吃饭");
        System.out.println("工号：" + teaid +
                "\n姓名：" + getName() +
                "\n年龄：" + getAge() +
                "\n性别：" + getGender());
    }
}
